﻿using DL.Tools;
using UnityEngine;

namespace DL.UI
{
    //仅作为数据模块
    public abstract class AbstractModel : MonoBehaviour
    {
        private bool _isInit;
        protected AbstractPage _page;

        public void SetContext(AbstractPage page)
        {
            if (_isInit)
            {
                Debugger.EO_Log("重复导入Page", Color.red);
                return;
            }
            _page = page;
            _isInit = true;
        }
        
    }
}